@import './var.less';
@import './home.less';
@import './films.less';
@import './detail.less';

*{
    padding:0;
    margin:0;
}

// 项目容器
.app{
    max-width: 750px;
    margin: 0 auto;
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    overflow: hidden;
}

// 头部搜索
.nav-box {
    height: @topHeight;
    line-height: @topHeight;
    // background-color: @white;
    border-bottom: 1px solid @gray-light;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    > .nav-input {
        flex-grow: 3;
        padding:0 0.2rem;
        box-sizing: border-box;
        > input[type='text'] {
            box-sizing: border-box;
            width: 100%;
            padding:0 0.1rem;
            height: 0.6rem;
            border: none;
            outline: none;
            background: @gray-ee url('../../public/imgs/search.png') no-repeat center;
            background-size: 0.4rem;
            border-radius: 0.1rem;
            &:focus {
                background-image: none;
                border: 1px solid @blue;
            }
        }
    }
    > .nav-btn {
        flex-grow: 1;
        text-align: center;
        color: @blue;
        cursor: pointer;
        font-size: 0.36rem;
        // display: none;
    }
}

// 主体内容
.content-box {
    position: absolute;
    top: @topHeight;
    bottom: 0;
    left: 0;
    right: 0;
}

// 首页和分类页的公用样式
.home-box,
.films-box {
    .list-name {
        > .title {
            float: left;
            margin: 0.24rem 0.1rem;
            padding-left: 0.1rem;
            font-size: 0.32rem;
            border-left: 4px solid @blue;
        }
        > .list-more {
            float: right;
            margin: 0.24rem 0.1rem;
            padding-right: 0.1rem;
            font-size: 0.28rem;
            color: @blue;
        }
    }
    .film-item {
        width: 2.35rem;
        height: 4.5rem;
        display: inline-block;
        margin-left: 0.1rem;
        vertical-align: top;
        > .film-img img {
            height: 3.5rem;
            width: 100%;
        }
        > .film-title {
            font-size: 0.26rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin: 0.1rem;
        }
    }
}


// 评分样式
.film-source {
    margin: 0 0.1rem 0 0;
    > span {
        height: 0.22rem;
        width: 0.22rem;
        line-height: 0.22rem;
        margin-left: 0.1rem;
    }
    > .star-img {
        display: inline-block;
        background-repeat: no-repeat;
        background-size: 100%;
    }
    > .open {
        background-image: url('../../public/imgs/star-open.png');
    }
    > .close {
        background-image: url('../../public/imgs/star-close.png');
    }
    > .star-source {
        padding-right: 0.1rem;
        font-size: 0.3rem;
    }
    > .star-tip {
        color: @gray;
        font-size: 0.28rem;
    }
}
